package ro.isdc.navigator.retriever.jdbc.strategy;

import java.io.Serializable;

/**
 * The paginated SQL containing the SQL and its pagination parameters:
 * the left limit and the right limit.
 * 
 * @author Andrei Chirila / ISDC! Romania
 * @version 1.0
 * @date Jul 9, 2009
 */
public class PaginatedSQL implements Serializable {
  
  /**
   * Generated Serial Version UID 
   */
  private static final long serialVersionUID = 9214959066403688984L;

  /**
   * The resulted paginated SQL;
   */
  private String paginatedSQL;
  
  /**
   * The left limit when performing pagination
   */
  private int leftLimit;
  
  /**
   * The right limit when performing pagination
   */
  private int rightLimit;

  /**
   * @return the paginatedSQL
   */
  public String getPaginatedSQL() {
    return paginatedSQL;
  }

  /**
   * @param paginatedSQL the paginatedSQL to set
   */
  public void setPaginatedSQL(final String paginatedSQL) {
    this.paginatedSQL = paginatedSQL;
  }

  /**
   * @return the leftLimit
   */
  public int getLeftLimit() {
    return leftLimit;
  }

  /**
   * @param leftLimit the leftLimit to set
   */
  public void setLeftLimit(final int leftLimit) {
    this.leftLimit = leftLimit;
  }

  /**
   * @return the rightLimit
   */
  public int getRightLimit() {
    return rightLimit;
  }

  /**
   * @param rightLimit the rightLimit to set
   */
  public void setRightLimit(final int rightLimit) {
    this.rightLimit = rightLimit;
  }
  
  
}
